#pragma once
#include <string>
#include "server/rtmp/amf0/amf0_inc.hpp"
#include "server/rtmp/rtmp_protocol/rtmp_define.hpp"
namespace mms
{
    class RtmpMessage;
    class RtmpOnStatusMessage
    {
    public:
        RtmpOnStatusMessage();
        virtual ~RtmpOnStatusMessage();

    public:
        int32_t decode(std::shared_ptr<RtmpMessage> rtmp_msg);
        std::shared_ptr<RtmpMessage> encode();

        Amf0Object &info()
        {
            return info_;
        }

    private:
        Amf0String command_name_;
        Amf0Number transaction_id_;
        Amf0Null null_;
        Amf0Object info_;
    };
};